package Assignment.Test6;

import java.io.FilenameFilter;

public class Dog extends Animal{
    public Dog() {
    }

    public Dog(int age, String color,String name) {
        super(age, color,name);
    }

    @Override
    public void eat(String something) {
        System.out.println(super.getName()+"吃"+something);
    }
}
